import type { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { thWordLength4, widthLevel1, widthLevel2 } from '@/config';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'workshopCode',
            columnProps: {
                label: '车间编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'workshopName',
            columnProps: {
                label: '车间名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'workshopLeader',
            columnProps: {
                label: '车间负责人',
                width: widthLevel2
            }
        },
        {
            modelKey: 'contactNumber',
            columnProps: {
                label: '手机号',
                width: widthLevel2
            }
        },
        {
            slotName: 'state',
            modelKey: 'state',
            columnProps: {
                label: '状态',
                width: thWordLength4
            }
        },
        {
            modelKey: 'creator',
            columnProps: {
                label: '创建人',
                width: widthLevel2
            }
        },
        {
            modelKey: 'createTime',
            columnProps: {
                label: '创建时间',
                width: widthLevel1
            }
        }
    ],
    unSelection: true
};
